package com.kordar.auth;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

public interface AuthService extends IService<Admin> {
    Admin findOneByUsername(String username);
    Set<String> findRolesByUser(long userId);
    Set<String> findPermissionsByUser(long userId);
    Set<String> findRolesByUser(Admin admin);
    Set<String> findPermissionsByUser(Admin admin);
}
